window.addEvent('domready',function(){
	var status = {
			'true': 'hide detail',
			'false': 'show detail'
		};
	APP.slide= new Fx.Slide('detailView').hide();
	
	APP.slide.addEvent('complete', function() {
		$('detailToggle').set('html', status[APP.slide.open]);
		});
});

function showImage(title, imageTitle, imageUrl){
	FBModal_show2(APP.utils+'/imageViewer', 'post', 
		"title="+title+
		"&imageTitle="+imageTitle+
		"&imageUrl="+imageUrl+
		"&maxWidth="+(screen.width-50)+
		"&maxHeight="+(screen.height-50), true, false, null, {
		onSuccess: function(res){}
		});
}